package com.top.service;

import com.top.dao.DAOFactory;
import com.top.dao.UserDao;
import com.top.entiy.User;

import java.sql.SQLException;

/**
 * @Author:
 * @DateTime: 2023/12/8 21:44
 * @Description:
 */
public class UserService {
    public boolean doLogin(User user) {
        try {
            return DAOFactory.getUserDAOInstance().doLogin(user);
        } catch (SQLException e) {
            System.out.println("登录失败");
        }
        return false;
    }
}
